home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / tls / tls036.1.Z / tls036.1 / usr / man / cat.SMT / fdfit.SMT.z / fdfit.SMT
Encoding:
Text File  |  1992-09-15  |  14.1 KB  |  361 lines

  1.  
  2.  
  3.  fdfit(SMT)                           .                            fdfit(SMT)
  4.  
  5.  
  6.  
  7.  _N_a_m_e
  8.  
  9.     fdfit - fits file archives onto media volumes
  10.  
  11.  _S_y_n_t_a_x
  12.  
  13.     ffddffiitt [_oooo_pppp_tttt_iiii_oooo_nnnn_ssss] ... _ssss_iiii_zzzz_eeee _pppp_aaaa_cccc_kkkk_aaaa_gggg_eeee_ssss _...._...._....
  14.  
  15.  _O_p_t_i_o_n_s
  16.  
  17.  
  18.     --ff _ffff_oooo_rrrr_mmmm_aaaa_tttt The files are saved in a _ffff_oooo_rrrr_mmmm_aaaa_tttt archive.  The default _ffff_oooo_rrrr_mmmm_aaaa_tttt is
  19.               the first listed in /_e_t_c/_f_d_f_o_r_m_a_t_s, and by convention is
  20.               ttaarr(C).  A number may be appended to _ffff_oooo_rrrr_mmmm_aaaa_tttt; the meaning of
  21.               that number depends on _ffff_oooo_rrrr_mmmm_aaaa_tttt but usually indicates the block-
  22.               ing factor.  For example, a _ffff_oooo_rrrr_mmmm_aaaa_tttt of ttaarr2200 means that ttaarr is
  23.               blocked at 20.
  24.  
  25.               The archive formats listed in /_e_t_c/_f_d_f_o_r_m_a_t_s include:
  26.  
  27.               ttaarr[bb]    ttaarr format, blocked bb
  28.  
  29.               ccppiioo [cc][BB]
  30.                         ccppiioo format, either binary or ASCII (cc), and either
  31.                         default blocking or 5120-byte records (BB)
  32.  
  33.               aarr        aarr(CP) archive
  34.  
  35.               dddd[_oooo_bbbb_ssss]   dddd(C) format, with an output record size of _oooo_bbbb_ssss bytes
  36.  
  37.     --oo _pppp_aaaa_tttt_tttt_eeee_rrrr_nnnn
  38.               _pppp_aaaa_tttt_tttt_eeee_rrrr_nnnn is the naming convention used for the output files.
  39.               Every time ``#'' appears in _pppp_aaaa_tttt_tttt_eeee_rrrr_nnnn, the two-digit number of
  40.               the volume is substituted.  There must be at least one ``#'' in
  41.               _pppp_aaaa_tttt_tttt_eeee_rrrr_nnnn; the default is ``#.fd''.  Volumes are numbered start-
  42.               ing at one (``01''); if there are any files too big to fit on a
  43.               single volume, these are listed as volume ``00''.  Any old
  44.               files following the naming _pppp_aaaa_tttt_tttt_eeee_rrrr_nnnn are removed.
  45.  
  46.     --qq        does not complain about absolute pathnames, even if they are
  47.               not recommended for _ffff_oooo_rrrr_mmmm_aaaa_tttt
  48.  
  49.     --ee        exits successfully even if some of the files in the packages
  50.               could not be found
  51.  
  52.     --vv        prints, on the standard output, a table summarizing the
  53.               arrangement chosen and the efficiency achieved
  54.  
  55.     --FF _ffff_oooo_rrrr_mmmm_aaaa_tttt_ssss_ffff_iiii_llll_eeee
  56.               alternate list of _ffff_oooo_rrrr_mmmm_aaaa_tttt descriptions; the default is
  57.               /_e_t_c/_f_d_f_o_r_m_a_t_s
  58.  
  59.     --OO _aaaa_llll_gggg_oooo_rrrr_iiii_tttt_hhhh_mmmm
  60.               specifies the default arranging _aaaa_llll_gggg_oooo_rrrr_iiii_tttt_hhhh_mmmm:
  61.  
  62.               nn              Next file.  If the next file in the input list
  63.                              does not fit on the current volume, the current
  64.                              volume is finished and a new volume started.
  65.                              This preserves the order of the files but may
  66.                              waste volumes.
  67.  
  68.               ff              First fit.  The first file that fits on the
  69.                              current volume is chosen for that volume.  Only
  70.                              when none of the files fit is the current volume
  71.                              finished and a new volume started.
  72.  
  73.               bb              Biggest fit.  Similar to _aaaa_llll_gggg_oooo_rrrr_iiii_tttt_hhhh_mmmm ff, except
  74.                              that the largest file possible is chosen.
  75.  
  76.               ss              Smallest fit.  Identical to _aaaa_llll_gggg_oooo_rrrr_iiii_tttt_hhhh_mmmm bb, except
  77.                              that the smallest file possible is chosen.
  78.  
  79.               ::              Each package starts on a new volume.
  80.  
  81.               ++              After one package is finished, the next package
  82.                              may be started on that volume.
  83.               Note that the default _aaaa_llll_gggg_oooo_rrrr_iiii_tttt_hhhh_mmmm can be overridden on a
  84.               package-by-package basis.  The initial default _aaaa_llll_gggg_oooo_rrrr_iiii_tttt_hhhh_mmmm is
  85.               ``f+''.
  86.  
  87.     --cc        checks to see if each package fits on exactly one volume.  No
  88.               output files are generated unless an explicit _pppp_aaaa_tttt_tttt_eeee_rrrr_nnnn is given,
  89.               and all _aaaa_llll_gggg_oooo_rrrr_iiii_tttt_hhhh_mmmm_ssss are ignored.
  90.  
  91.     --ll _llll_aaaa_bbbb_eeee_llll  The file named _llll_aaaa_bbbb_eeee_llll (which is a pattern similar to --oo _pppp_aaaa_tttt_tttt_eeee_rrrr_nnnn)
  92.               is the first file on each volume.  If _llll_aaaa_bbbb_eeee_llll does not exist, it
  93.               is created with zero length and a mode of 0444 (only read
  94.               access for all).  If _llll_aaaa_bbbb_eeee_llll does exist, it must be a regular
  95.               file; whatever size _llll_aaaa_bbbb_eeee_llll has is used.
  96.  
  97.     _ssss_iiii_zzzz_eeee, which must be given after all _oooo_pppp_tttt_iiii_oooo_nnnn_ssss, is the size of each volume
  98.     in bytes.  A suffix of ``k'' multiplies the number by 1024, ``b'' by 512,
  99.     and ``w'' by 2.
  100.  
  101.     _pppp_aaaa_cccc_kkkk_aaaa_gggg_eeee_ssss are collections of files that are to be arranged as an indivisi-
  102.     ble unit.  If the ``:'' _aaaa_llll_gggg_oooo_rrrr_iiii_tttt_hhhh_mmmm modifier is in effect, each package
  103.     starts a new volume; otherwise (``+'') packages may share volumes.  At
  104.     least one _pppp_aaaa_cccc_kkkk_aaaa_gggg_eeee must be described after _ssss_iiii_zzzz_eeee:
  105.  
  106.     _ffff_iiii_llll_eeee      The files in this package are listed in _ffff_iiii_llll_eeee; the package has
  107.               the default _aaaa_llll_gggg_oooo_rrrr_iiii_tttt_hhhh_mmmm applied to it.  A _ffff_iiii_llll_eeee of ``-'' means the
  108.               standard input.
  109.  
  110.     --pp [_aaaa_llll_gggg_oooo_rrrr_iiii_tttt_hhhh_mmmm] _ffff_iiii_llll_eeee
  111.               Same as above, except that _aaaa_llll_gggg_oooo_rrrr_iiii_tttt_hhhh_mmmm (if given) is used instead
  112.               of the default.
  113.  
  114.     --PP [_aaaa_llll_gggg_oooo_rrrr_iiii_tttt_hhhh_mmmm] _ffff_iiii_llll_eeee_ssss _...._...._....
  115.               Similar to --pp, except that the named _ffff_iiii_llll_eeee_ssss are the package.
  116.  
  117.  
  118.  _D_e_s_c_r_i_p_t_i_o_n
  119.  
  120.     ffddffiitt tries to arrange groups (``packages'') of files onto the fewest
  121.     number of media volumes while avoiding splitting any file across two or
  122.     more media volumes.  Packages are not intermixed, and all links to a file
  123.     within a package are placed on the same volume.  Each volume has a capa-
  124.     city of  _ssss_iiii_zzzz_eeee bytes, and is written in a specified  _ffff_oooo_rrrr_mmmm_aaaa_tttt, such as
  125.     ttaarr(C) or ccppiioo(C).
  126.  
  127.     An arbitrary number of packages may be given.  The packages are dealt
  128.     with on a one-by-one basis, with each package being completely arranged
  129.     before the next package is started.  The _aaaa_llll_gggg_oooo_rrrr_iiii_tttt_hhhh_mmmm used to arrange each
  130.     package may be individually specified.  Whether or not a package can
  131.     start on the same volume that holds the end of the previous package may
  132.     also be specified.
  133.  
  134.     The output of ffddffiitt is a series of files; the first file lists the files
  135.     that belong on volume one, the second lists the files for volume two, and
  136.     so on (up to a limit of 100 volumes).
  137.  
  138.  _N_o_t_e_s
  139.  
  140.     Links in packages arranged by the ``n'' algorithm are usually scrambled.
  141.  
  142.     No effort is made to ensure that directories occur in the arrangement
  143.     before any files contained in them.
  144.  
  145.     Some formats are inherently non-portable.  Furthermore, some of the port-
  146.     able formats, such as ttaarr, have slightly different overheads on different
  147.     machines.
  148.  
  149.     Under obscure conditions, linked files in large packages may cause infin-
  150.     ite looping.
  151.  
  152.  _F_o_r_m_a_t _f_i_l_e
  153.  
  154.     An ffddffoorrmmaattss file describes a file archiving format to ffddffiitt(SMT).  ffddffiitt
  155.     only understands distributed dictionary archives, such as ttaarr(C),
  156.     ccppiioo(C), and aarr(CP).
  157.  
  158.     Each line in an ffddffoorrmmaattss file describes a separate _ffff_oooo_rrrr_mmmm_aaaa_tttt.  The format
  159.     is in the form:
  160.  
  161.        ffddffoorrmmaattss _vvvv_oooo_llll_hhhh_dddd_rrrr _ffff_iiii_llll_hhhh_dddd_rrrr _vvvv_oooo_llll_bbbb_llll_kkkk _ffff_iiii_llll_rrrr_nnnn_dddd [++] [//] [_tttt_yyyy_pppp_eeee[_ssss_iiii_zzzz_eeee]]...
  162.  
  163.     Empty lines, and lines beginning with ``*'', are ignored.
  164.  
  165.     The first field, _ffff_oooo_rrrr_mmmm_aaaa_tttt, names the archive being described.  _ffff_oooo_rrrr_mmmm_aaaa_tttt is an
  166.     alphabetic name; no digits or non-letters are allowed.
  167.  
  168.     The next four fields are decimal numbers giving the critical values:
  169.  
  170.     _vvvv_oooo_llll_hhhh_dddd_rrrr    the overhead for each volume (floppy).  This is the sum of the
  171.               sizes of the volume header and trailer blocks.
  172.  
  173.     _ffff_iiii_llll_hhhh_dddd_rrrr    the overhead for each file (element) in the archive.  This is
  174.               the sum of the sizes of the element header and trailer blocks,
  175.               and may be dependent on the length of the file's name.  If so,
  176.               a ``+'' should be specified in the miscellaneous fields section
  177.               at the end of the line.
  178.  
  179.     _vvvv_oooo_llll_bbbb_llll_kkkk    the volume blocking factor.  The number of bytes written to
  180.               each volume is always a multiple of this size.
  181.     _ffff_iiii_llll_rrrr_nnnn_dddd    the file rounding boundary.  Each element in the archive, with
  182.               its header and trailer, is rounded up to the next such bound-
  183.               ary.
  184.  
  185.     Each of these values may have a suffixed unit of ``w'', ``b'', or ``k'',
  186.     indicating multiplication of the number by 2, 512, and 1024, respec-
  187.     tively.
  188.  
  189.     In addition, each number may be prefixed by ``#''.  This causes the num-
  190.     ber suffixed to _ffff_oooo_rrrr_mmmm_aaaa_tttt, as specified by the user with the --ff _ffff_oooo_rrrr_mmmm_aaaa_tttt flag
  191.     to ffddffiitt, to be used instead of the value given in ffddffoorrmmaattss.  If the
  192.     value in ffddffoorrmmaattss is suffixed with a unit, the value from --ff _ffff_oooo_rrrr_mmmm_aaaa_tttt is
  193.     multiplied as indicated, ignoring any unit the user specified.  But when
  194.     ffddffoorrmmaattss does not indicate a unit, any unit indicated with --ff _ffff_oooo_rrrr_mmmm_aaaa_tttt is
  195.     used.
  196.  
  197.     After the four values is a miscellaneous information section.  If this
  198.     contains a ``+'', then the length of a file's name must be added to that
  199.     file's _ffff_iiii_llll_hhhh_dddd_rrrr.  A ``/'' says that absolute pathnames are not a problem in
  200.     this _ffff_oooo_rrrr_mmmm_aaaa_tttt.
  201.  
  202.     The other fields in the miscellaneous section are a single character _tttt_yyyy_pppp_eeee
  203.     optionally followed by a _ssss_iiii_zzzz_eeee value.  The _tttt_yyyy_pppp_eeee indicates that a special
  204.     file is correctly saved in a ffoorrmmaatt archive:
  205.  
  206.          bb    block special device
  207.  
  208.          cc    character special device
  209.  
  210.          dd    directory
  211.  
  212.          nn    name space entry, such as semaphores and shared data regions
  213.  
  214.          pp    named pipes (FIFO's)
  215.  
  216.          &&    links to previously saved files
  217.  
  218.     If _ssss_iiii_zzzz_eeee is a number (which may have a unit suffix), the _tttt_yyyy_pppp_eeee special file
  219.     is always saved as if it were _ssss_iiii_zzzz_eeee bytes long.  A _ssss_iiii_zzzz_eeee of ``#'' uses the
  220.     actual file size obtained from ssttaatt(S).  Otherwise, when no _ssss_iiii_zzzz_eeee is
  221.     specified, zero (0) is assumed; the special file is completely described
  222.     by the element header and trailer blocks.
  223.  
  224.  _F_o_r_m_a_t _f_i_l_e _n_o_t_e_s
  225.  
  226.     Unpredictable results happen when both ``+'' and ``&'' are specified.
  227.  
  228.     The meaning of ``/'' is subjective; most archiving programs archive abso-
  229.     lute pathnames, but the behavior on extraction is undesirable (extreme
  230.     measures like cchhrroooott(C) must be employed).
  231.  
  232.  _S_e_e _a_l_s_o
  233.  
  234.     aarr(CP), ccppiioo(C), dddd(C), ttaarr(C)
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338.  
  339.  
  340.  
  341.  
  342.  
  343.  
  344.  
  345.  
  346.  
  347.  
  348.  
  349.  
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361.